package com.hmdp.utils;

public interface ILock {

    /**
     * 获取锁
     * @param timeoutSecond 过期时间
     * @return true || false
     */
    boolean tryLock(long timeoutSecond);

    /**
     * 释放锁
     */
    void unLock();
}
